<?php
apf_require_controller("HrAbstract");
apf_require_controller("Hr_Department_List");
class Hr_HomeController extends HrAbstractController {

    public function handle_request() {
        $allow = $this->apf->get_config('hr_auth','auth');
        if(in_array($_SESSION['user_code'], $allow)){
            $this->response->redirect(Util_BaseUrls::dep_list_url(), TRUE, FALSE);return ;
        }else{
            $this->response->redirect(Util_BaseUrls::staff_list_url(), TRUE, FALSE);return ;
        }

    }
}